-- GENERATED SPELL FOR [Booty Bay Elite] --


function spell0_15088(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15088', 10311, 1)
end

function spell1_15088(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15088', 5335, 1)
end

function spell2_15088(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15088', 587, 1)
end

function Sorts_15088(pUnit, Event)
local choix_sorts_15088 = math.random(0, 2)
if choix_sorts_15088 == 0 then
pUnit:RegisterEvent('spell0_15088', 1, 1)
end
if choix_sorts_15088 == 1 then
pUnit:RegisterEvent('spell1_15088', 1, 1)
end
if choix_sorts_15088 == 2 then
pUnit:RegisterEvent('spell2_15088', 1, 1)
end
end

function mob15088_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15088', math.random(1500, 3000), 1)
end

function mob15088_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15088_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15088_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15088, 1, 'mob15088_Action')
RegisterUnitEvent(15088, 2, 'mob15088_Leave')
RegisterUnitEvent(15088, 3, 'mob15088_Kill')
RegisterUnitEvent(15088, 4, 'mob15088_Die')
